<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<c:set var="base" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>书签列表</title>
    <style type="text/css">
        .mypad{
            padding-right:10px;
        }
    </style>
</head>
<body>
<div class="row">
    <div class="col-md-10">
        <ol class="breadcrumb">
            <li><a href="${base}/bookmark?m=listBookmark">书签管理</a></li>
            <c:if test="${parent!=null}">
            <li>${parent.name}</li>
            </c:if>
        </ol>

    </div>
    <div class="col-md-2"><a href="${base}/bookmark?m=createBookmark&folderId=${parent.id}">创建</a></div>
</div>
<div class="row">
    <div class="col-lg-10">
    <c:forEach items="${folders}" var="folder">

            <span class="glyphicon glyphicon-folder-open ">  <a href="${base}/bookmark?m=listBookmark&folderId=${folder.id}">${folder.name}</a></span><br/>

            <!--    <p class="text-danger">
                <a href="${base}/bookmark?m=delete&id=${folder.id}">删除</a>
                <a href="${base}/bookmark?m=toUpdate&id=${folder.id}">编辑</a>
            </p> -->

    </c:forEach>
    <c:forEach items="${bookmarks}" var="bookmark">
       <span class="glyphicon glyphicon-bookmark ">  <a href="#"> ${bookmark.name}</a></span><br/>
<!--
            <p class="text-danger">
                <a href="${base}/bookmark?m=delete&id=${bookmark.id}">删除</a>
                <a href="${base}/bookmark?m=toUpdate&id=${bookmark.id}">编辑</a>
            </p>
            -->
    </c:forEach>
    </div>
</div>
</body>
</html>
